package com.neusoft.servlet;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.logicalcobwebs.proxool.ProxoolFacade;

/**
 * 使用Proxool连接池， 当在重启Tomcat容器时，出现
   Exception in Thread "HouseKeeper" java.lang.NullPointerException 
 */
public class ProxoolServlet extends HttpServlet {
	private static final long serialVersionUID = 5836011783841650312L;
	
	public void init() throws ServletException {}   
		    
     public void destroy() {   
         ProxoolFacade.shutdown();   
     }   
   
     public void doPost(HttpServletRequest request, HttpServletResponse response) throws   
         ServletException, IOException {   
         doGet(request,response);   
     }   
     public void doGet(HttpServletRequest request, HttpServletResponse response) throws   
         ServletException, IOException {   
     }   

}
